﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace CurriculaAPI.ViewModelDTO
{
    public class StudentInfoRegisterDTO
    {
        [DisplayName("姓名")]
        [Required(ErrorMessage = "姓名不能为空")]
        public string Name { get; set; }
        [DisplayName("性别")]
        [Required(ErrorMessage = "性别不能为空")]
        public int Sex { get; set; }
        [DisplayName("学号")]
        [Required(ErrorMessage = "专业类别不能为空")]
        public int SNo { get; set; }
        [DisplayName("手机号码")]
        [Required(ErrorMessage = "课程名字不能为空")]
        public string PhoneNum { get; set; }
        [DisplayName("密码")]
        [Required(ErrorMessage = "职称名称不能为空")]
        public string Password { get; set; }
        [DisplayName("确认密码")]
        [Required(ErrorMessage = "上课时间不能为空")]
        public string Pwd { get; set; }
        [DisplayName("家庭住址")]
        [Required(ErrorMessage = "上课时间不能为空")]
        public string Address { get; set; }
    }
}